var gulp = require("gulp");
var ts = require("gulp-typescript");
// const createStyledComponentsTransformer = require('typescript-plugin-styled-components').default;
const createStyledComponentsTransformerCopy = require('./plugins/typescript-plugin-styled-components-copy').default;

var tsProject = ts.createProject("tsconfig.json");



var tsProject = ts.createProject("tsconfig.json",{
    getCustomTransformers:()=>({
        before:[
            // createStyledComponentsTransformer(),
            createStyledComponentsTransformerCopy(),
        ]
    })
});

gulp.task("default", function () {
    return tsProject.src()
        .pipe(tsProject())
        .js.pipe(gulp.dest("dist"));
});